-- GENERATED SPELL FOR [Alliance Conscript] --


function spell0_27564(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(29426,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27564', 547, 1)
end

function spell1_27564(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27564', 560, 1)
end

function Sorts_27564(pUnit, Event)
local choix_sorts_27564 = math.random(0, 1)
if choix_sorts_27564 == 0 then
pUnit:RegisterEvent('spell0_27564', 1, 1)
end
if choix_sorts_27564 == 1 then
pUnit:RegisterEvent('spell1_27564', 1, 1)
end
end

function mob27564_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27564', math.random(1500, 3000), 1)
end

function mob27564_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27564_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27564_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27564, 1, 'mob27564_Action')
RegisterUnitEvent(27564, 2, 'mob27564_Leave')
RegisterUnitEvent(27564, 3, 'mob27564_Kill')
RegisterUnitEvent(27564, 4, 'mob27564_Die')
